package com.demo.gulimall.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.io.Serializable;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 退款信息
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("oms_refund_info")
public class RefundInfo implements Serializable {
	/** id */
	@TableId(type = IdType.ID_WORKER) // 老版本
    //@TableId(type = IdType.ASSIGN_ID) // 新版本
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`id`")
	private Long id;

	/** 退款的订单 */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`order_return_id`")
	private Long orderReturnId;

	/** 退款金额 */
	@TableField(value = "`refund`")
	private BigDecimal refund;

	/** 退款交易流水号 */
	@TableField(value = "`refund_sn`")
	private String refundSn;

	/** 退款状态 */
	@TableField(value = "`refund_status`")
	private Byte refundStatus;

	/** 退款渠道[1-支付宝，2-微信，3-银联，4-汇款] */
	@TableField(value = "`refund_channel`")
	private Byte refundChannel;

	@TableField(value = "`refund_content`")
	private String refundContent;

}
